/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;

import java.sql.ResultSet;
import java.util.Properties;

/** Generated Model for hrm_declinecase
 *  @author Vladimir Sokolov
 *  @version Release 3.7.0LTS - $Id$ */
public class X_hrm_declinecase extends PO implements I_hrm_declinecase, I_Persistent 
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20120413L;

    /** Standard Constructor */
    public X_hrm_declinecase (Properties ctx, int hrm_declinecase_ID, String trxName)
    {
      super (ctx, hrm_declinecase_ID, trxName);
      /** if (hrm_declinecase_ID == 0)
        {
			setFirstName (null);
			sethrm_casetype (null);
			sethrm_declinecase_ID (0);
			setLastName (null);
			setMiddleName (null);
        } */
    }

    /** Load Constructor */
    public X_hrm_declinecase (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 3 - Client - Org 
      */
    protected int get_AccessLevel()
    {
      return accessLevel.intValue();
    }

    /** Load Meta Data */
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_hrm_declinecase[")
        .append(get_ID()).append("]");
      return sb.toString();
    }

	public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException
    {
		return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
			.getPO(getC_BPartner_ID(), get_TrxName());	}

	/** Set Business Partner .
		@param C_BPartner_ID 
		Identifies a Business Partner
	  */
	public void setC_BPartner_ID (int C_BPartner_ID)
	{
		if (C_BPartner_ID < 1) 
			set_Value (COLUMNNAME_C_BPartner_ID, null);
		else 
			set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
	}

	/** Get Business Partner .
		@return Identifies a Business Partner
	  */
	public int getC_BPartner_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Description.
		@param Description 
		Optional short description of the record
	  */
	public void setDescription (String Description)
	{
		set_Value (COLUMNNAME_Description, Description);
	}

	/** Get Description.
		@return Optional short description of the record
	  */
	public String getDescription () 
	{
		return (String)get_Value(COLUMNNAME_Description);
	}

	/** Set FirstName.
		@param FirstName FirstName	  */
	public void setFirstName (String FirstName)
	{
		set_Value (COLUMNNAME_FirstName, FirstName);
	}

	/** Get FirstName.
		@return FirstName	  */
	public String getFirstName () 
	{
		return (String)get_Value(COLUMNNAME_FirstName);
	}

	/** hrm_casetype AD_Reference_ID=1000018 */
	public static final int HRM_CASETYPE_AD_Reference_ID=1000018;
	/** genitive = 1 */
	public static final String HRM_CASETYPE_Genitive = "1";
	/** dative = 2 */
	public static final String HRM_CASETYPE_Dative = "2";
	/** Set hrm_casetype.
		@param hrm_casetype hrm_casetype	  */
	public void sethrm_casetype (String hrm_casetype)
	{

		set_Value (COLUMNNAME_hrm_casetype, hrm_casetype);
	}

	/** Get hrm_casetype.
		@return hrm_casetype	  */
	public String gethrm_casetype () 
	{
		return (String)get_Value(COLUMNNAME_hrm_casetype);
	}

	/** Set hrm_declinecase_ID.
		@param hrm_declinecase_ID hrm_declinecase_ID	  */
	public void sethrm_declinecase_ID (int hrm_declinecase_ID)
	{
		if (hrm_declinecase_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_hrm_declinecase_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_hrm_declinecase_ID, Integer.valueOf(hrm_declinecase_ID));
	}

	/** Get hrm_declinecase_ID.
		@return hrm_declinecase_ID	  */
	public int gethrm_declinecase_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_declinecase_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set LastName.
		@param LastName LastName	  */
	public void setLastName (String LastName)
	{
		set_Value (COLUMNNAME_LastName, LastName);
	}

	/** Get LastName.
		@return LastName	  */
	public String getLastName () 
	{
		return (String)get_Value(COLUMNNAME_LastName);
	}

	/** Set MiddleName.
		@param MiddleName MiddleName	  */
	public void setMiddleName (String MiddleName)
	{
		set_Value (COLUMNNAME_MiddleName, MiddleName);
	}

	/** Get MiddleName.
		@return MiddleName	  */
	public String getMiddleName () 
	{
		return (String)get_Value(COLUMNNAME_MiddleName);
	}
}